package com.pl.museumguide.activities;

import com.pl.museumguide.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Main extends Activity {

	protected Button qrButton;
	protected Button navigationButton;	
	protected Button settingsButton;
	protected Button helpButton;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_menu_layout);
		
		Button qrButton = (Button) findViewById(R.id.btn_qr);
		 qrButton.setOnClickListener(new View.OnClickListener() {
			 @Override
	         public void onClick(View view) {
	        	 Intent qrScan = new Intent(Main.this, scanqr.class);
	        	 startActivity(qrScan);
	         } 
	      });
		 
		Button navigationButton = (Button) findViewById(R.id.btn_navigation);
		 navigationButton.setOnClickListener(new View.OnClickListener() {
	         public void onClick(View view) {
	         Intent navigation = new Intent(Main.this, navigation.class);
	         startActivity(navigation);
	         } 
	      });
		 
		Button settingsButton = (Button) findViewById(R.id.btn_list);
		 settingsButton.setOnClickListener(new View.OnClickListener() {
	         public void onClick(View view) {
	         Intent list = new Intent(Main.this, List.class);
	         startActivity(list);
	         } 
	      });
		 
		Button helpButton = (Button) findViewById(R.id.btn_help);
		 helpButton.setOnClickListener(new View.OnClickListener() {
	         public void onClick(View view) {
	         Intent help = new Intent(Main.this, Help.class);
	         startActivity(help);
	         } 
	      });
	}
}
